package structural.composite;
//Leaf class
public class PrimitiveElement extends DrawingElement {
	public PrimitiveElement(String name) {
		super(name);
	}

	@Override
	public void add(DrawingElement d) {
		System.out.println("Cannot add to a PrimitiveElement");
	}

	@Override
	public void display(int indent) {
		System.out.println(new String(new String("----------").toCharArray(), 0, indent)+ " " + _name);
	}

	@Override
	public void remove(DrawingElement d) {
		System.out.println("Cannot remove from a PrimitiveElement");
	}

}
